from ai_assistant import AIAssistant

class VoiceAssistant(AIAssistant):
    def __init__(self, id, name, version, is_online, ability_score, supported_voice_languages):
        super().__init__(id, name, "语音", version, is_online, ability_score)
        self.supported_voice_languages = supported_voice_languages
    
    def execute_task(self, task_content):
        return f"[{self.get_name()}] 执行语音交互任务：\n指令：{task_content}\n响应结果：（已通过语音助手完成交互，支持语言：{self.supported_voice_languages}）"
    
    # Getter and setter for supported_voice_languages
    def get_supported_voice_languages(self):
        return self.supported_voice_languages
    
    def set_supported_voice_languages(self, supported_voice_languages):
        self.supported_voice_languages = supported_voice_languages
    
    def __str__(self):
        return super().__str__() + f", 支持语音语言: {self.supported_voice_languages}"